package buco.integrity.assertion;

import org.json.simple.JSONObject;

import buco.core.api.*;

public class AssertBundleConnected extends SemanticConstraint {

	private String bundleSymbolicName; 
	private Version version; 
	
	@Override
	protected void deserialize(JSONObject jsonObject) throws Exception {
		bundleSymbolicName = jsonObject.get("bundleSymbolicName").toString();
		if(jsonObject.get("version") != null) { 
			version = Version.fromString(jsonObject.get("version").toString());
		}
	}

	public String getBundleSymbolicName() {
		return bundleSymbolicName;
	}

	public Version getVersion() {
		return version;
	}
}
